package com.example.demo.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression.DateTime;

@Data
@ApiModel
@Api(tags = "操作日志")
@TableName("base_operation_log")
public class OperationLogEntity extends Model<OperationLogEntity> implements Serializable{

	private static final long serialVersionUID=1L;
	
	//id
	@TableId(type = IdType.AUTO)	
	@ApiModelProperty(value = "id", name = "id" , hidden = true)
	private int id;
	
	/**
	 * 标题
	 */
	@ApiModelProperty(value = "标题", name = "标题")
	private String title;
	
	/**
	 * 操作人
	 */
	@ApiModelProperty(value = "操作人", name = "操作人")
	private String operatorUser;
	
	/**
	 * 操作人姓名
	 */
	@ApiModelProperty(value = "操作人姓名", name = "操作人姓名")
	private String operatorName;
	
	/**
	 * 操作时间
	 */
	@ApiModelProperty(value = "操作时间", name = "操作时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date operatDateTime;
	
	/**
	 * 操作类型
	 */
	@ApiModelProperty(value = "操作类型", name = "操作类型")
	private String operatType;
	
	/**
	 * 描述
	 */
	@ApiModelProperty(value = "描述", name = "描述")
	private String description;
	
}
